package co.com.smart.persistence.entity;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import co.com.smart.persistence.entity.dto.SmartDocumento;
import co.com.smart.persistence.entity.util.AbstractFacade;

/**
 * Session Bean implementation class DocumentoFacade
 */
@Stateless(
		name		= "DocumentoFacade", 
		mappedName 	= "ejb/DocumentoFacade")
public class DocumentoFacade extends AbstractFacade<SmartDocumento> implements DocumentoFacadeLocal {

	@PersistenceContext(unitName = "SmartServicesPU")
	private EntityManager em;
	/**
	 * Default constructor. 
	 */
	public DocumentoFacade() {
		super(SmartDocumento.class);
	}
	
	@Override
	protected EntityManager getEntityManager() {
		return em;
	}
}
